package com.mall.entity.groupbooking;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author White
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class GbRoot {
    /**
     * 主键
     */
    private Integer id;
    /**
     * 开团团长
     */
    private Long uid;
    /**
     * 开团时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    /**
     * 开团商品
     */
    private Long specItemId;
    /**
     * 活动id
     */
    private Long activityId;
    /**
     * 参加人数
     */
    private Integer joinCount;
    /**
     * 结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
    /**
     * 状态(0-未完成,1-已完成,2-未支付,3-已失效)
     */
    private String status;

    private String userImage;

    private String userName;

    private String goodsName;

    private Integer countPerson;

    private int time;


}
